package core.physics;

import core.Entity;

public interface CollisionDetectionAlgorithm {

	/**
	 * Determines whether two entities are in any way overlapping.
	 * 
	 * @param a
	 *            The first entity.
	 * @param b
	 *            The second entity.
	 * @return True if there is a collision.
	 */
	public boolean isCollision(Entity a, Entity b);

	/**
	 * Does some action based on two collided entities.
	 * 
	 * @param a
	 *            The first entity.
	 * @param b
	 *            The second entity.
	 */
	public void react(Entity a, Entity b);

}
